package com.dy.opencvandroid.widget;

import android.content.Context;
import android.opengl.GLSurfaceView;
import android.util.AttributeSet;

/**
 * Created by gongdongyang 2019/5/28
 * Describe:
 */
public class MagicView extends GLSurfaceView  {

    private final MagicRender magicRender;

    public MagicView(Context context) {
        this(context,null);
    }

    public MagicView(Context context, AttributeSet attrs) {
        super(context, attrs);

        setEGLContextClientVersion(2);

        setRenderMode(GLSurfaceView.RENDERMODE_WHEN_DIRTY);

        magicRender = new MagicRender();

        setRenderer(magicRender);
    }


}
